package model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the mycomment database table.
 * 
 */
@Entity
public class Mycomment implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int commentid;

	private String content;

	private Timestamp postdate;

	//bi-directional many-to-one association to Myuser
    @ManyToOne
	@JoinColumn(name="user")
	private Myuser myuser1;

	//bi-directional many-to-one association to Target
    @ManyToOne
	@JoinColumn(name="target")
	private Target targetBean;

	//bi-directional many-to-one association to Myuser
    @ManyToOne
	@JoinColumn(name="reply_to")
	private Myuser myuser2;

    public Mycomment() {
    }

	public int getCommentid() {
		return this.commentid;
	}

	public void setCommentid(int commentid) {
		this.commentid = commentid;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp getPostdate() {
		return this.postdate;
	}

	public void setPostdate(Timestamp postdate) {
		this.postdate = postdate;
	}

	public Myuser getMyuser1() {
		return this.myuser1;
	}

	public void setMyuser1(Myuser myuser1) {
		this.myuser1 = myuser1;
	}
	
	public Target getTargetBean() {
		return this.targetBean;
	}

	public void setTargetBean(Target targetBean) {
		this.targetBean = targetBean;
	}
	
	public Myuser getMyuser2() {
		return this.myuser2;
	}

	public void setMyuser2(Myuser myuser2) {
		this.myuser2 = myuser2;
	}
	
}